import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import enUsTrans from './modules/en'
import zhCnTrans from './modules/zh'

i18n.use(initReactI18next).init({
  resources: {
    en: { translation: enUsTrans },
    zh: { translation: zhCnTrans }
  },
  fallbackLng: 'zh',
  debug: false,
  interpolation: {
    escapeValue: false, // 不转义以允许HTML标签
  },
});

export default i18n;